From 5597ff486dba9d0ea9fb4a0acfdb73c690859147 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Tue, 8 Feb 2022 15:12:34 +0100
Subject: chore(prism): translate color scheme toggle button

---
 src/pages/article/[slug].tsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'src/pages/article/[slug].tsx')

diff --git a/src/pages/article/[slug].tsx b/src/pages/article/[slug].tsx
index d00d939..feb672a 100644
--- a/src/pages/article/[slug].tsx
+++ b/src/pages/article/[slug].tsx
@@ -13,7 +13,11 @@ import { ArticleMeta, ArticleProps } from '@ts/types/articles';
 import { settings } from '@utils/config';
 import { getFormattedPaths } from '@utils/helpers/format';
 import { loadTranslation } from '@utils/helpers/i18n';
-import { addPrismClasses, translateCopyButton } from '@utils/helpers/prism';
+import {
+  addPrismClasses,
+  translateCopyButton,
+  translateToggleButton,
+} from '@utils/helpers/prism';
 import { usePrismTheme } from '@utils/providers/prism';
 import { GetStaticPaths, GetStaticProps, GetStaticPropsContext } from 'next';
 import Head from 'next/head';
@@ -37,6 +41,7 @@ const SingleArticle: NextPageWithLayout<ArticleProps> = ({ post }) => {
 
   useEffect(() => {
     translateCopyButton(locale, intl);
+    translateToggleButton(locale, intl);
   }, [intl, locale]);
 
   const { setCodeBlocks } = usePrismTheme();
-- 
cgit v1.2.3

